// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import FastClick from 'fastclick'
import VueRouter from 'vue-router'
import App from './App'
import router from './router'
import store from './store'
import './assets/css/app.css'
import './assets/css/vux.css'
import 'leaflet/dist/leaflet.css'
import 'babel-polyfill'
// import '../src/assets/css/app.css'
// import '../src/assets/css/vux.css'
// import './assets/css/vux.css'
Vue.use(VueRouter)
import common from './assets/js/common.js'
Vue.use(common)
    // import touch from 'vue-directive-touch';
    // Vue.use(touch);
import VueTouch from 'vue-touch'
Vue.use(VueTouch, { name: 'v-touch' })
VueTouch.config.swipe = {

    threshold: 200 //手指左右滑动距离

}

FastClick.attach(document.body)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
    router,
    store,
    el: '#app-box',
    template: '<app/>',
    components: {
        app: App
    }
})